<template>
<MyList :items="items" :title="title"></MyList>
</template>

<script setup>
import {shallowRef} from "vue";
import {MINIO_HOST} from "@/const";
import {dateFormat} from "@/util";
import MyList from "@/components/MyList.vue";

let title='测试标题';
let items= shallowRef([
  { label:'标签01',value:1,type:'tag',prefix:'No.'},
  { label:'标签01',value:1,type:'tag',prefix:'No.',tagType:'danger'},
  { label:'头像01',value:'touxiang.png',type:'img',minio:src=>MINIO_HOST+'/test/'+src},
  { label:'头像02',value:'touxiang.png',type:'img',minio:src=>MINIO_HOST+'/test/'+src,large:true},
  { label:'文字01',value:'标题'},
  { label:'文字02',value:'标题',prefix:'《',suffix:'》'},
  { label:'描述',value:'这是我的自我介绍',type:'card',span:2},
  { label:'评分',value:1,type:'star'},
  { label:'创建日期',value:new Date(),format:dateFormat}

])

</script>

<style scoped lang="scss">

</style>